public class java11 {
    public static void main(String[] args) {
        outer: for (int i = 1; i < 4; ++i) {   //在循环语句前，添加 标签: 来进行标记
            inner: for (int j = 4; j >0; j--) {
                if(i == j) break outer;    //break后紧跟要结束的循环标记，当i == j时终止外层循环
                System.out.println(i+", "+j);
            }
        }
    }
}
